package com.atchangsha.system.constant;

import com.atchangsha.system.common.exception.EnumInterface;

public class WorkerConstants {
    public enum WorkerEnum implements EnumInterface{
        REPEAT(-2001,"账号重复"),
        REGISTRY_SUCCESS(2002,"注册成功"),
        REGISTRY_FAIL(-2003,"注册失败"),
        USERNAME_FAIL(-2004,"账号错误"),
        PASSWORD_FAIL(-2005,"密码错误"),
        LOGIN_SUCCESS(2006,"登录成功"),
        UPDATE_SUCCESS(2007,"修改成功"),
        UPDATE_FAIL(2007,"修改失败"),
        ;
        private int code;
        private String message;

        WorkerEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }
}
